package com.tianql.feign;

import com.tianql.constant.ApiNameConstant;
import com.tianql.core.ApiResult;
import com.tianql.pojo.OrderTbl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name= ApiNameConstant.MY_ORDER,path = "/order")
@Service
public interface OrderFeign {
    @PostMapping("createOrder")
    public ApiResult createOrder(@RequestBody OrderTbl orderTbl);
}
